
from task.base.baseApi import Base
import time
import task.pageObject
import allure

class PageHome(Base):
    @allure.step('滑动页面')
    def scroll(self):
        self.base_scroll()
        time.sleep(2)

    @allure.step('点击商品链接')
    def click_goods(self):
        self.base_click(task.pageObject.loc_home_goods)
        time.sleep(2)

    @allure.step('点击首页购物车')
    def click_cart(self):
        self.base_click(task.pageObject.loc_home_cart)

    @allure.step('切换窗口')
    def switch_window(self):
        self.base_switch_window(task.pageObject.title_goods)






  

 